<template>
	<view class="search-link" @click="goSearch">
		<view class="search-box">
			<icon type="search" size="18" color="#bbb" />
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		methods:{
			goSearch(){
				uni.navigateTo({
					url:'/pages/search/search'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	// 搜索框
	.search-link {
		background-color: #ed4450;
		padding: 20rpx 16rpx;
	
		.search-box {
			height: 60rpx;
			background-color: #fff;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 8rpx;
			color: #bbb;
	
			icon {
				margin-top: 4rpx;
			}
	
			text {
				margin-left: 10rpx;
			}
		}
	}
</style>
